<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <LINK REL="stylesheet" HREF="../css/stylesheet.css" TYPE="text/css" />
        <title>Module Management</title>
    </head>

    <body>
        <s:form action="createAssessment" namespace="/AssessmentManagement" method="createNewAssessment" >
            <s:textfield name="module.moduleCode" label="Module" />
            <s:textfield name="title" label="Title" />
            <s:textfield name="description" label="Description"/>
            <s:textfield name="maxMark" label="Maximum mark"/>
            <s:textfield name="markRange.max" label="Mark Range - Max"/>
            <s:textfield name="markRange.min" label="Mark Range - Min" />
            <s:textfield name="weightPercentage" label="Weighting (Percentage)"/>


            <s:textfield name="assessmentItems[0].name" label="Assessment 1"   />
            <s:textfield name="assessmentItems[0].weightPercentage" label="Weight" />


            <s:textfield name="assessmentItems[1].name" label="Assessment 2"  />
            <s:textfield name="assessmentItems[1].weightPercentage" label="Weight" />


            <s:textfield name="assessmentItems[2].name" label="Assessment 3"  />
            <s:textfield name="assessmentItems[2].weightPercentage" label="Weight"  />


            <s:textfield name="assessmentItems[3].name" label="Assessment 4"  />
            <s:textfield name="assessmentItems[3].weightPercentage" label="Weight"  />


            <s:textfield name="assessmentItems[4].name" label="Assessment 5"  />
            <s:textfield name="assessmentItems[4].weightPercentage" label="Weight"  />


        <s:submit value="submit" name="submit" />
    </s:form>
</body>
</html>
